package cn.wolfcode.shop.controller;

import cn.wolfcode.shop.service.ICatalogService;
import jdk.nashorn.internal.ir.annotations.Reference;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class MainController {

    @Reference
    private ICatalogService catalogService;

    /**
     * 显示主页面
     * @return
     */
    @RequestMapping("/main")
    public String mainPage(){
        return "main";
    }

    /**
     * 显示商城简介页面
     * @return
     */
    @RequestMapping("/index")
    public String indexPage(){

        return "index";
    }
}
